Skip to content

KeepWithSignal class

Defined in

Namespace: ReactiveUI.Primitives.Signals Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Signals.KeepWithSignal<T1, T2> Modifiers: public sealed

Summary

View source

        Filters source values using a caller-supplied state value, without allocating a per-value closure: the state is
        stored on the sink and passed to the predicate for each element.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class KeepWithSignal~T1,T2~
class IRequireCurrentThread~T~ {
    <>
}
IRequireCurrentThread~T~ <|.. KeepWithSignal~T1,T2~
class IObservable~T~ {
    <>
}
IObservable~T~ <|.. KeepWithSignal~T1,T2~

Implements: IRequireCurrentThread, IObservable

Constructors

NameSummary
.ctorInitializes a new instance of the [KeepWithSignal](# class.

Methods

NameSummary
IsRequiredSubscribeOnCurrentThreadDetermines whether the sink must subscribe on the current thread.
SubscribeSubscribes the observer to the filtered sequence.
Inherited members